package com.gsit.job;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import com.gsit.job.config.AppConfig;
import com.gsit.job.services.LoadSearchCriteria;

public class MainLoadData {
	
	private static ApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		MainLoadData loadData = new MainLoadData();
		loadData.loadSearchCriteriaToDB();
	}
	
	
	private void loadSearchCriteriaToDB(){
		LoadSearchCriteria criteria = context.getBean(LoadSearchCriteria.class);
		criteria.createSearchCriterias();
	}

}
